package com.qf.mapper;

import com.qf.pojo.Fangxing;
import com.qf.pojo.Xiadan;
import com.qf.pojo.XiadanDTO;
import com.qf.pojo.XiadanExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XiadanMapper {

    List<Xiadan> selectAllById(Integer id);

    /*添加下单*/
    void addXiadan(Xiadan xiadan);

    /*显示下单页面*/
    XiadanDTO selectXiadan(Fangxing fangxing);

    int countByExample(XiadanExample example);

    int deleteByExample(XiadanExample example);

    int deleteByPrimaryKey(Integer xid);

    int insert(Xiadan record);

    int insertSelective(Xiadan record);

    List<Xiadan> selectByExample(XiadanExample example);

    Xiadan selectByPrimaryKey(Integer xid);

    int updateByExampleSelective(@Param("record") Xiadan record, @Param("example") XiadanExample example);

    int updateByExample(@Param("record") Xiadan record, @Param("example") XiadanExample example);

    int updateByPrimaryKeySelective(Xiadan record);

    int updateByPrimaryKey(Xiadan record);

    List<Xiadan> selectAll();
}